<!--<?php
print <<<EOT
-->

<script src="../css/edit.js"></script>
<script>
<!--

function validate(form) {
    

    //return ture;
}

//-->
</script>
<!--Content Start-->
<table width="95%" border="0" align="center">
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>
      <span id="edit_area"></span>
    
      <form action="p_confirm_delete.php" method="post" name="form1" onSubmit="return validate(this)">
      <table width="100%" border="0" align="left" cellpadding="3" cellspacing="3">
        <tr> 
          <td>
          
            

            
            
            $page_show

            <table width="100%" border="0" cellspacing="1" cellpadding="1" class="tb">
              <tr class="tbheader"> 
		        <td width="45">View</td>
		        <td width="30">Code</td>
                <td width="50">Name</td>
                <td width="30">New</td>
                <td width="80">Hidden</td>
                <td width="50">Select</td>
              </tr>

<!--
EOT;
for($i=0; $i<count($out_ary); $i++){
    $new_out = $out_ary[$i]['new_flag'] == 1 ? "YES" : "NO";
    $hidden_out = $out_ary[$i]['hidden_flag'] == 1 ? "YES" : "";
    
    if (trim($out_ary[$i]['small_pic']) == "" || !file_exists("attachments/" . $out_ary[$i]['small_pic'])) {
        $out_ary[$i]['small_pic'] = 'no_40.gif';
    }
print <<<EOT
-->

              <tr class="tbcontent1"> 
                <td align="center" valign="middle" width="45"><a href="javascript:getAdminEdit('edit_area', '3', '{$out_ary[$i]['id']}')"><img src="attachments/{$out_ary[$i]['small_pic']}" border="0" class="picture" width="40" height="40"></a></td>
		        <td align="center">{$out_ary[$i]['code']}</td>
                <td align="left">&nbsp;{$out_ary[$i]['name']}</td>
                <td align="center">$new_out</td>
                <td align="left">{$hidden_out}</td>
                <td align="center"><input type="checkbox" name="pid_ary[]" value="{$out_ary[$i]['id']}" /></td>
			    
              </tr>

<!--
EOT;
} print <<<EOT
--> 

                            
            </table>

            $page_show

          </td>
        </tr>
        
        <tr><td height=20></td></tr>
        
        <tr><td>
          <table width="100%" border="0" cellspacing="1" cellpadding="1">
              <tr> 
		        <td width="50%">
		        <input type="image" src="../images/admin/bt_selectall.gif" width="103" height="20" value="Select All" onClick="switchCheckbox('all',form1, 'pid_ary[]');return false;">&nbsp;
                <input type="image" src="../images/admin/bt_unselectall.gif" width="120" height="20" value="Not Any" onClick="switchCheckbox('empty',form1, 'pid_ary[]');return false;">&nbsp;
                <!--input type=button value="fan" onClick="switchCheckbox('switch',form1, 'pid_ary[]');"-->&nbsp;
                </td>
                <td width="50%" align="right">
                <!--input type="image" src="../images/admin/bt_recoverselect.gif" width="147" height="20" name="sub1" value="Recover"-->&nbsp;
                <input type="image" src="../images/admin/bt_deleteselect.gif" width="132" height="20" name="sub2" value="Delete" onclick="return confirm('Do you really to delete select products ?')">
                </td>
              </tr>
            </table>
        </td></tr>
        
      </table>
      </form>
      
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p></td>
  </tr>
</table>
<!--Content End-->

<!--
EOT;
?>-->